# $Id$
# Contributor: Jevgeny Krasovsky <jkrasovsky@gmail.com>

_realname=qrencode
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=3.4.4
pkgrel=1
pkgdesc="C library for encoding data in a QR Code symbol (mingw-w64)."
arch=(any)
depends=("${MINGW_PACKAGE_PREFIX}-libpng")
makedepends=(${MINGW_PACKAGE_PREFIX}-SDL)
url="http://megaui.net/fukuchi/works/qrencode/index.en.html"
license=('GPL')
source=(http://megaui.net/fukuchi/works/${_realname}/${_realname}-${pkgver}.tar.bz2)
sha256sums=('efe5188b1ddbcbf98763b819b146be6a90481aac30cfc8d858ab78a19cde1fa5')

build() {
  cd "${srcdir}/$_realname-$pkgver"

  ./configure --prefix=${MINGW_PREFIX}

  make
}

package() {
  cd "${srcdir}/$_realname-$pkgver"

  make DESTDIR="${pkgdir}" install
}
